#include "KalmanTank.h"

KalmanTank::KalmanTank(otank_t* enemy) :
	KalmanFilter(Vector2(enemy->pos[0], enemy->pos[1]))
{
	this->enemy = enemy;
}


KalmanTank::~KalmanTank(void)
{
}

otank_t* KalmanTank::GetStruct(){
	return enemy;
}

Vector2 KalmanTank::GetObservedPosition() {
	return Vector2(enemy->pos[0], enemy->pos[1]);
}

bool KalmanTank::ObjectIsOnBoard() {
	return enemy->status != "dead";
}